//
//  AMPSADJGNativeExpressView.m
//  AdScopeDemo
//
//  Created by apple on 2025/5/26.
//

#import "AMPSADJGNativeExpressView.h"
#import <AdScopeFoundation/AdScopeFoundation.h>

@implementation AMPSADJGNativeExpressView

- (void)removeAd {
    [_adjgNativeAdView adjg_unRegistView];
    if (_adjgNativeAdView) {
        [_adjgNativeAdView removeFromSuperview];
        _adjgNativeAdView = nil;
    }
}

- (void)render {
    [self.adjgNativeAdView adjg_registViews:@[self.adjgNativeAdView]];
}

- (NSInteger)eCPM {
    ADJgSDKExtInfo *extInfo = [self.adjgNativeAdView adjg_extInfo];
    return [extInfo.ecpm integerValue];
}

- (BOOL)isValid {
    return YES;
}

- (void)dealloc {
    [self removeAd];
}

- (void)sendWinNotificationWithInfo:(NSDictionary *)winInfo {
   
}

- (void)sendLossNotificationWithInfo:(NSDictionary *)lossInfo {
    
}

@end
